import request from '@/router/axios';
import serviceList from '@/config/serviceList'
import {baseURL} from '@/api/common';

const {aihumanCore} = serviceList

export const getBackPageList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/backgroundGallery/getPageList`,
    method: 'post',
    data
  })
}
export const deleteBackground = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/backgroundGallery/deleteBackground`,
    method: 'post',
    data
  })
}
export const changeStatus = (params) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/backgroundGallery/changeStatus`,
    method: 'post',
    params
  })
}
export const addOrUpdateBackground = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/backgroundGallery/addOrUpdateBackground`,
    method: 'post',
    data
  })
}
